<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:composite="http://java.sun.com/jsf/composite">

	<composite:interface>
		<composite:attribute name="metodoExcluir" required="true" method-signature="java.lang.String excluir()"/>
		<composite:attribute name="labelExclusao" required="true" />
	</composite:interface>

	<composite:implementation>
		<h:form id="exclusaoDialogForm">
		
			 <p:confirmDialog id="#{cc.id}_ConfirmDialog" header="Atenção !!" 
			 				  message="Deseja realmente realizar a exclusão do ${cc.attrs.labelExclusao} ?" style="horizontal-align:center; width: 300px !important;" 
							  severity="alert" 
							  widgetVar="widgetVar_confirmDialog" 
							  closable="false" appendToBody="true">
						
					<br/>
								
					<div align="center">	 		
						<p:commandButton id="confirm" style="width:30%" value="Ok" action="#{cc.attrs.metodoExcluir}" update="" process="@this" onclick="widgetVar_confirmDialog.hide();" />
						<p:commandButton id="cancel"  style="width:30%" value="#{bundle.cancelar}" process="@this" onclick="widgetVar_confirmDialog.hide()"/>  
					</div>
								 
			</p:confirmDialog>
		</h:form>
		
	</composite:implementation>
</html>